package com.qingke.notlonely.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="user_eduction")
public class UserEduction {
	@Id
	@Column(name="id")
	private int id;
	@ManyToOne
	@JoinColumn(name="user_id")
	private User user;
	@ManyToOne
	@JoinColumn(name="eduction_id")
	private Eduction eduction;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Eduction getEduction() {
		return eduction;
	}
	public void setEduction(Eduction eduction) {
		this.eduction = eduction;
	}
	@Override
	public String toString() {
		return "UserEduction [id=" + id + ", user=" + user + ", eduction=" + eduction + "]";
	}
	
}
